﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nwrole.console
{
    [global::System.AttributeUsage(AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
    sealed class OptionalAttribute : Attribute
    {
        readonly object value;

        public OptionalAttribute ()
        { }

        public OptionalAttribute (object defaultValue)
        {
            this.value = defaultValue;
        }

        public object Value
        {
            get { return value; }
        }
    }
}
